package com.chiyi.listener;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;

/**
 * @date 2021/5/14 20:16
 */
@Service
@Slf4j
@RocketMQMessageListener(consumerGroup = "shop-user-topic-4", topic = "test-topic-4")
public class TestTopic4Listener implements RocketMQListener<String> {
    @Override
    public void onMessage(String o) {
        log.info("顺序信息：{}", o);
    }


}
